const { override, fixBabelImports,addLessLoader } = require('customize-cra');
// const { override, fixBabelImports, addLessLoader } = require('customize-cra');
module.exports = override(
  fixBabelImports('import', {
    libraryName: 'antd',
    libraryDirectory: 'es',
     style: 'css',
    // style: true,
  }),
  addLessLoader({//改主题颜色
    javascriptEnabled: true,
    modifyVars: { '@primary-color': '#1DA57A' },
  }),
  //  addWebpackAlias({//改别名
  //           "@": resolve("src")
  //       }),
);